﻿@model PhoneBilling.Models.Report5ResultModel
@{
    ViewBag.Title = "日话务统计";
    Layout = "~/Views/Shared/_Layout.cshtml"; 
}
<script type="text/javascript">
    function back() {
        history.go(-1); //后退1页  
    }  
</script>
@using (Html.BeginForm("Report5", "Statistics"))
{
    @Html.HiddenFor(m => m.开始日期)
    @Html.HiddenFor(m => m.结束日期)
    @Html.Hidden("IsExport", true)
    <input type="button" value="返回" onclick="back()"/>  
    <input type="submit" value="导出Excel"/> 
    <div class="input-text">
         @Html.LabelFor(m => m.总金额)
         @Html.DisplayFor(m => m.总金额)
    </div>
    <div>
        @{
    var grid = new WebGrid(source: Model.List, canPage: false);
        }
        @grid.GetHtml(
            alternatingRowStyle: "bg",
            columns: grid.Columns
            (
                  grid.Column("日期", "日期"),
                  grid.Column("话单总次数", "总次数"),
                  grid.Column("话单总金额", "总金额"),
                     grid.Column("内线计次", "内线计次"),
                     grid.Column("内线金额", "内线金额"),
                     grid.Column("市话计次", "市话计次"),
                     grid.Column("市话金额", "市话金额"),
                     grid.Column("郊县计次", "郊县计次"),
                     grid.Column("郊县金额", "郊县金额"),
                     grid.Column("IP计次", "IP计次"),
                     grid.Column("IP金额", "IP金额"),
                     grid.Column("信息计次", "信息计次"),
                     grid.Column("信息金额", "信息金额"),
                     grid.Column("专线计次", "专线计次"),
                     grid.Column("专线金额", "专线金额"),
                     grid.Column("国内计次", "国内计次"),
                     grid.Column("国内金额", "国内金额"),
                     grid.Column("国际计次", "国际计次"),
                     grid.Column("国际金额", "国际金额"),
                     grid.Column("其他计次", "其他计次"),
                     grid.Column("其他金额", "其他金额")
            )
        )
    </div>
}
